<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>iterator标签status属性示例</title>
</head>
<body>
	<table border=1 width=200>
		<s:iterator value="{'曹操','孙权','刘备'}" id="heroName" status="st">
			<tr <s:if test="#st.odd"> style="background-color:#def7c2" </s:if>>
				<td ><s:property value="#st.count" /></td>
				<td ><s:property value="heroName" /></td>
			</tr>
		</s:iterator>
	</table>
</body>
</html>
